<?php

use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;

use App\Http\Controllers\Api\UserController;
use App\Http\Controllers\Api\CommonController;
use App\Http\Controllers\Api\PetController;

Route::get('/test', [UserController::class, 'test']);

Route::controller(UserController::class)->group(function () {
    Route::post('user/xcxLogin', 'xcxLogin');
    Route::get('user/getUserInfo', 'getUserInfo');
    Route::post('user/editUser', 'editUser');
});

Route::controller(CommonController::class)->group(function () {
    Route::post('common/uploadFile', 'uploadFile');
});

Route::controller(PetController::class)->group(function () {
    Route::post('pet/drawImg', 'drawImg');
    Route::get('pet/drawImgList', 'drawImgList');
});
